//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.ruoyi.live.base.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

public class LivePaperImportError implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(
            value = "id",
            type = IdType.AUTO
    )
    private Long id;
    private Long importId;
    private Long productId;
    private Integer type;
    private Integer detailType;
    private String errContent;

    public LivePaperImportError() {
    }

    public Long getId() {
        return this.id;
    }

    public Long getImportId() {
        return this.importId;
    }

    public Long getProductId() {
        return this.productId;
    }

    public Integer getType() {
        return this.type;
    }

    public Integer getDetailType() {
        return this.detailType;
    }

    public String getErrContent() {
        return this.errContent;
    }

    public LivePaperImportError setId(final Long id) {
        this.id = id;
        return this;
    }

    public LivePaperImportError setImportId(final Long importId) {
        this.importId = importId;
        return this;
    }

    public LivePaperImportError setProductId(final Long productId) {
        this.productId = productId;
        return this;
    }

    public LivePaperImportError setType(final Integer type) {
        this.type = type;
        return this;
    }

    public LivePaperImportError setDetailType(final Integer detailType) {
        this.detailType = detailType;
        return this;
    }

    public LivePaperImportError setErrContent(final String errContent) {
        this.errContent = errContent;
        return this;
    }

    public String toString() {
        return "LivePaperImportError(id=" + this.getId() + ", importId=" + this.getImportId() + ", productId=" + this.getProductId() + ", type=" + this.getType() + ", detailType=" + this.getDetailType() + ", errContent=" + this.getErrContent() + ")";
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof LivePaperImportError)) {
            return false;
        } else {
            LivePaperImportError other = (LivePaperImportError)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                Object this$id = this.getId();
                Object other$id = other.getId();
                if (this$id == null) {
                    if (other$id != null) {
                        return false;
                    }
                } else if (!this$id.equals(other$id)) {
                    return false;
                }

                Object this$importId = this.getImportId();
                Object other$importId = other.getImportId();
                if (this$importId == null) {
                    if (other$importId != null) {
                        return false;
                    }
                } else if (!this$importId.equals(other$importId)) {
                    return false;
                }

                Object this$productId = this.getProductId();
                Object other$productId = other.getProductId();
                if (this$productId == null) {
                    if (other$productId != null) {
                        return false;
                    }
                } else if (!this$productId.equals(other$productId)) {
                    return false;
                }

                label62: {
                    Object this$type = this.getType();
                    Object other$type = other.getType();
                    if (this$type == null) {
                        if (other$type == null) {
                            break label62;
                        }
                    } else if (this$type.equals(other$type)) {
                        break label62;
                    }

                    return false;
                }

                label55: {
                    Object this$detailType = this.getDetailType();
                    Object other$detailType = other.getDetailType();
                    if (this$detailType == null) {
                        if (other$detailType == null) {
                            break label55;
                        }
                    } else if (this$detailType.equals(other$detailType)) {
                        break label55;
                    }

                    return false;
                }

                Object this$errContent = this.getErrContent();
                Object other$errContent = other.getErrContent();
                if (this$errContent == null) {
                    if (other$errContent != null) {
                        return false;
                    }
                } else if (!this$errContent.equals(other$errContent)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof LivePaperImportError;
    }

    public int hashCode() {
        boolean PRIME = true;
        int result = 1;
        Object $id = this.getId();
        int result1 = result * 59 + ($id == null ? 43 : $id.hashCode());
        Object $importId = this.getImportId();
        result1 = result * 59 + ($importId == null ? 43 : $importId.hashCode());
        Object $productId = this.getProductId();
        result1 = result * 59 + ($productId == null ? 43 : $productId.hashCode());
        Object $type = this.getType();
        result1 = result * 59 + ($type == null ? 43 : $type.hashCode());
        Object $detailType = this.getDetailType();
        result1 = result * 59 + ($detailType == null ? 43 : $detailType.hashCode());
        Object $errContent = this.getErrContent();
        result1 = result * 59 + ($errContent == null ? 43 : $errContent.hashCode());
        return result1;
    }
}
